import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'
import "~/assets/main.scss";

export default defineNuxtPlugin((nuxtApp) => {
  for(const [key, component] of Object.entries(ElementPlusIconsVue)) {
    nuxtApp.vueApp.component(key, component)
  }
  nuxtApp.vueApp.use(ElementPlus,{
    locale: zhCn
  })
})
